<template>
  <div class='tags'>
      <b style="margin-right:15px">标签</b>
    <el-select v-model="value" style="width:300px" placeholder="请选择">
    <el-option
      v-for="item in options"
      :key="item.id"
      :label="item.tagName"
      :value="item.id">
    </el-option>
  </el-select>
  </div>
</template>

<script>
import { list } from '@/api/hmmm/tags'
export default {
  name: 'SelectedTags',
  data () {
    return {
      value: null,
      options: []
    }
  },
  methods: {
    async request (subId) {
      const res = await list({
        subjectID: subId
      })
      this.options = res.data.items
    }
  }
}
</script>

<style>

</style>
